{% load staticfiles %}
<div class="container">
    <nav class="navbar navbar-default" role="navigation">
        <div class="navbar-header">
            <a class="navbar-brand" href="http://www.itdiffer.com">
                <img src="{% static '/imgs/logo.png' %}" width="100px">
            </a>
        </div>
        <div>
            <ul class="nav navbar-nav" role="navigation">
                <li><a href="{% url 'home' %} }">Home</a></li>
                <li><a href="{% url 'blog:blog_title' %}">BLOG</a></li>
                <li><a href="{% url 'article:article_titles' %}">文章</a> </li>
                <li><a href="{% url 'image:falls_images' %}">美图</a></li>
                <li><a href="{% url 'course:about' %}">关于</a></li>
                <li><a href="{% url 'course:course_list' %}">课程</a></li>
                <li><a href="{% url 'course:manage_course' %}">课程管理</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {% if user.is_authenticated %}
                <li>
    <div class="dropdown" style="margin_top:8px">
        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu" data-toggle="dropdown">
            {{user.username}}
            <span class="caret"></span>
        </button>

    <ul class="dropdown-menu">
        <li><a href="{% url 'account:password_change' %}">修改密码</a> </li>
        <li><a href="{% url 'account:edit_my_information' %}">修改信息</a></li>
    </ul>
                </div>
</li>
                <li><a href="#">{{user.username}}</a> </li>
                <li><a href="{% url 'account:user_logout' %}">Logout</a> </li>
                {% else %}
                <li><a href="{% url 'account:user_login' %}">LOGIN</a> </li>
                    <li><a href="{% url 'account:user_register' %}">Sign up</a> </li>
                {% endif %}
            </ul>
        </div>
    </nav>
</div>
<script src="{% static 'js/jquery.js' %}"></script>
<script src="{% static 'js/bootstrap.js' %}"></script>